package inv.stask.logic;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class MyProperties {
	protected String homeDir	= "";
	protected String archiveDir	= "";
	
	{
		Properties prop	= new Properties();
		try {
			ClassLoader cl = this.getClass().getClassLoader(); 
			prop.load(new FileInputStream(cl.getResource("staks.properties").getFile()));
			homeDir	= prop.getProperty("HOME");
			archiveDir = prop.getProperty("ARCHIVE");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public String getHomeDir() {
		return homeDir;
	}

	public String getArchiveDir() {
		return archiveDir;
	}
}
